Skip to content

Conversation

@sfc-gh-turbaszek
Copy link
Contributor

@sfc-gh-turbaszek sfc-gh-turbaszek commented Oct 30, 2025

There's a difference in fetchall implementation between sync and aio code. In sync code the fetchall calls fetchone under the hood. In AIO code the implementation is different and as a result does not call _report_metrics after fetching all result.

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left 1 nit, but all looks good

rets.extend(batch)
# yield to avoid blocking the event loop for too long when processing large result sets
# await asyncio.sleep(0)
await self._final()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose not caring about the above comment is caused by the fact that user can just use 'async queries' - in Snowflake meaning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants